package dto

import "amin-ease/internal/models"

type RegisterReq struct {
	// binding:"required"修饰的字段，若接收为空值，则报错，是必须字段
	Username string `form:"username" json:"username" binding:"required"`
	Password string `form:"password" json:"password" binding:"required"`
}
type RegisterResp struct {
	Token string `json:"token"`
}
type ListReq struct {
	Page int `form:"page" json:"page" binding:"required"`
	Size int `form:"size" json:"size" binding:"required"`
}
type ListResp struct {
	List []models.User
}
type UsersReq struct {
	UserId int `form:"userId" json:"userId" binding:"required"`
}
type UsersResp struct {
	Users models.UserPerson
}
type AddReq struct {
	UserId  int    `form:"userId" json:"userId" binding:"required"`
	Content string `form:"content" json:"content" binding:"required"`
}
type AddResp struct {
	Ping *models.Ping
}
